package com.mrh.mall.admin.dto;

import com.mrh.mall.admin.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * @author: 末日混
 * @Date: 2023年02月03日 18:13
 * 品牌请求参数
 */
@Data
public class PmsBrandParam {

    @NotEmpty
    @ApiModelProperty(value = "品牌名称",required = true)
    private String name;

    @ApiModelProperty(value = "品牌首字母")
    private String firstLetter;

    @ApiModelProperty(value = "排序字段")
    @Min(value = 0)
    private Integer sort;

    @FlagValidator(value = {"0","1"},message = "厂家状态不正确")
    @ApiModelProperty(value = "是否为品牌制造商：0->不是；1->是")
    private Integer factoryStatus;

    @FlagValidator(value = {"0","1"},message ="显示状态不正确")
    @ApiModelProperty(value = "是否进行显示")
    private Integer showStatus;

    @NotEmpty
    @ApiModelProperty(value = "品牌logo",required = true)
    private String logo;

    @ApiModelProperty(value = "品牌大图")
    private String bigPic;

    @ApiModelProperty(value = "品牌故事")
    private String brandStory;

}
